auto merge of #369 : alexcrichton/cargo/issue-327, r=wycats
authorbors <bors@rust-lang.org>
Fri, 15 Aug 2014 04:28:57 +0000 (04:28 +0000)
committerbors <bors@rust-lang.org>
Fri, 15 Aug 2014 04:28:57 +0000 (04:28 +0000)
commit002bf7d080b62d164138114cf7a9e998980e6210
treed919e40aa4270f5db1636c0c4109828a2d77d7a4
parent1206abdb6180e3d030c36ab361b0a431d2fbca1e
parent22dfc520830c6b71762a0340f278d5bcdc029cef
auto merge of #369 : alexcrichton/cargo/issue-327, r=wycats

The syntax was originally chosen to perhaps allow multiple libraries in the future, but that is less and less likely to happen at this point. This commit deprecates the now-misleading `[[lib]]` in favor of `[lib]` to indicate that only one can be present.

This does not start allowing `[bin]` or `[example]` and such as I felt that it was too many ways to specify what's essentially the same thing. This also as a bonus allows a top-level `bin = []` to completely opt-out of binary inference (as well as for tests and examples).

Closes #327
src/cargo/core/manifest.rs
src/cargo/util/toml.rs
tests/test_cargo_compile_git_deps.rs
tests/test_cargo_test.rs